﻿using System.Configuration;
using Framework;

namespace Enterprise
{
   public class ArticleCategoryConfig:ConfigService
    {

       static ArticleCategoryConfig()
        {
            ThumbnailWidth = ConfigurationManager.AppSettings["ArticleCategoryThumbnailWidth"].SafeToInt();
            ThumbnailHeight = ConfigurationManager.AppSettings["ArticleCategoryThumbnailHeight"].SafeToInt();
            ThumbnailPrefix = ConfigurationManager.AppSettings["ArticleCategoryThumbnailPrefix"].SafeToString();
            ImageSize = ConfigurationManager.AppSettings["ArticleCategoryImageSize"].SafeToInt();
            NormalWidth = ConfigurationManager.AppSettings["ArticleCategoryNormalWidth"].SafeToInt();
            NormalHeight = ConfigurationManager.AppSettings["ArticleCategoryNormalHeight"].SafeToInt();
            NormalPrefix = ConfigurationManager.AppSettings["ArticleCategoryNormalPrefix"].SafeToString();
            IsWaterMark = ConfigurationManager.AppSettings["IsArticleCategoryWaterMark"].SafeToBool();
            WaterMarkFileName = ConfigurationManager.AppSettings["ArticleCategoryWaterMarkFileName"].SafeToString();
            WaterMarkRelativePath = ConfigurationManager.AppSettings["ArticleCategoryWaterMarkRelativePath"].SafeToString();
            IsGenerateThumbnail = ConfigurationManager.AppSettings["IsArticleCategoryGenerateThumbnail"].SafeToBool();
            IsGenerateNormal = ConfigurationManager.AppSettings["IsArticleCategoryGenerateNormal"].SafeToBool();
            IsAdaptive = ConfigurationManager.AppSettings["IsArticleCategoryImageAdaptive"].SafeToBool();
            RelativePath = ConfigurationManager.AppSettings["ArticleCategoryImageRelativePath"].SafeToString();
            Depth = ConfigurationManager.AppSettings["ArticleCategoryDepth"].SafeToInt();
        }
        public new static int ThumbnailWidth { get; set; }

        public new static int ThumbnailHeight { get; set; }

        public new static int ImageSize { get; set; }

        public new static bool IsGenerateThumbnail { get; set; }

        public new static string ThumbnailPrefix { get; set; }

        public new static bool IsWaterMark { get; set; }

        public new static string RelativePath { get; set; }

        public new static string WaterMarkFileName { get; set; }

        public new static string WaterMarkRelativePath { get; set; }

        public new static bool IsGenerateNormal { get; set; }

        public new static bool IsAdaptive { get; set; }

        public new static int NormalWidth { get; set; }

        public new static int NormalHeight { get; set; }

        public new static string NormalPrefix { get; set; }
        /// <summary>
        /// 深度
        /// </summary>
        public new static int Depth { get; set; }
    }
}
